package com.atguigu.edu.realtime.publisher.service.impl;

import com.atguigu.edu.realtime.publisher.bean.UserPageCt;
import com.atguigu.edu.realtime.publisher.mapping.UserUserActionMapper;
import com.atguigu.edu.realtime.publisher.service.UserUserActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class UserUserActionServiceImpl implements UserUserActionService {
    @Autowired
    UserUserActionMapper userUserActionMapper;
    @Override
    public BigDecimal getBackUser(Integer date) {
        return userUserActionMapper.selectBackUser(date);
    }

    @Override
    public BigDecimal getActiveUser(Integer date) {
        return userUserActionMapper.selectActiveUser(date);
    }

    @Override
    public BigDecimal getNewUser(Integer date) {
        return userUserActionMapper.selectNewUser(date);
    }

    @Override
    public List<UserPageCt> getUvByPage(Integer date) {
        return userUserActionMapper.selectUvByPage(date);
    }
}
